Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libwebp: Don't define WEBP_DLL macro when building a static library #1770

Merged
merged 1 commit into from
Nov 3, 2024

Conversation

LandonTheCoder
Copy link
Contributor

The libwebp wrap currently enables the WEBP_DLL macro unconditionally, which means on Windows the symbols from a static build of libwebp will be exported, potentially having unintended consequences. To fix that, only define the macro when building shared libraries for libwebp.

Before it would define the WEBP_DLL macro unconditionally, which caused it to use the __declspec(dllexport) property when building as a static library on Windows. That caused its symbols to be exported from any target which the static libwebp was linked into (such as an executable).
@neheb neheb merged commit 37b8cf9 into mesonbuild:master Nov 3, 2024
9 checks passed
@LandonTheCoder LandonTheCoder deleted the libwebp-exports-fix branch November 4, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants